﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Admin/Admin.Master" AutoEventWireup="true" CodeBehind="AdminDefault.aspx.cs" Inherits="HCFramework.Product.AdminDefault" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {
            $(".deleteMenu").click(function () {
                return confirm("Are you sure to delete this node?");
            });
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <telerik:RadTreeView ID="RadTreeView1" DataFieldParentID="ParentID" DataFieldID="ProductCategoryID"
        DataTextField="Name" DataValueField="ProductCategoryID" runat="server" 
        CollapseAnimation-Duration="0" ExpandAnimation-Duration="0" 
        Font-Bold="True" oncontextmenuitemclick="RadTreeView1_ContextMenuItemClick">
        <ContextMenus>
            <telerik:RadTreeViewContextMenu ID="RadTreeViewContextMenu1" runat="server">
                <Items>
                    <telerik:RadMenuItem runat="server" Text="Manage" Value="Manage">
                    </telerik:RadMenuItem>
                    <telerik:RadMenuItem CssClass="deleteMenu" runat="server" Text="Delete" Value="Delete">
                    </telerik:RadMenuItem>
                </Items>
            </telerik:RadTreeViewContextMenu>
        </ContextMenus>
<ExpandAnimation Duration="0"></ExpandAnimation>

<CollapseAnimation Duration="0"></CollapseAnimation>
    </telerik:RadTreeView>
</asp:Content>
